import 'package:freezed_annotation/freezed_annotation.dart';
import 'package:flutter/foundation.dart';
import 'package:sleep/model/blue_connection_state.dart';

part 'blue_connect.freezed.dart';

enum ConnectionError {
  unknown,
  failedToConnect,
}

@freezed
class BlueConnectModel with _$BlueConnectModel {
  const factory BlueConnectModel({
    required String deviceId,
    required BlueConnectionState connectionState,
    ConnectionError? failure,
  }) = _BlueConnectModel;
}
